﻿using System;
using System.Net;
using SkyCli.OAuth;

namespace SkyCli
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            var oauth = new OAuthService();
            var token = oauth.GetAccessToken("00000000400BFBA5");
            var client = new WebClient();
            client.DownloadFile(string.Format("https://apis.live.net/v5.0/file.A4944D41AF54C6C1.A4944D41AF54C6C1!915/content?access_token={0}", token), "test.xml");
            Console.Out.WriteLine(token);
            Console.ReadLine();
        }

        
    }
}
